Lua/Client/Game/Functions/ShowPopup
From JC2-MP Documentation
Returns | none |
---|---|
Prototype | Game:ShowPopup(string message, boolean shouldShowBlueIcon) |
Description | Shows a notification on the top-left of the screen, using the game's GUI. |
Example
function Popup(args)
Game:ShowPopup(args.text, false)
end
function PopupIcon(args)
Game:ShowPopup(args.text, true)
end
Console:Subscribe("popup", Popup)
Console:Subscribe("popupicon", PopupIcon)
Console input
> popup Hello, I'm some popup text > popupicon With icon
Result
